package com.guarantee.server.common.base;

import lombok.Data;

import java.io.Serializable;
import java.util.UUID;

@Data
public class MessageBody implements Serializable {

	//消息ID
	private String messageId = UUID.randomUUID().toString();
	//消息名称
	private String title;
	//目标队列
	private String targetQueue;
	//消息体
	private String body;
	//消息对应的处理类
	private String handlerBeanName;
	//失败原因
	private String reason;
	//是否是重试消息
	private Boolean retryFlag = false;
	/**
	 * 交换机
	 */
	private String exchange;

	/**
	 * 对应的路由键
	 */
	private String routingKey;
	//交易资源中心
	private String serverName;

}